<div class="alert alert-success alert-dismissable">
    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
    <%- message %>

</div>
<div class="panel panel-info">
<div class="panel-heading"><h4 class="panel-title">资源管理</h4></div>
<form action="/webrest/upsert/<%=_id?_id:'nil'%>" method="post" class="form-horizontal" id="uform" role="form">
    <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">名称</label>

        <div class="col-sm-10">
            <input type="text" class="form-control" name="name" placeholder="Email">
        </div>
    </div>
    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">URL</label>

        <div class="col-sm-10">
            <input type="text" class="form-control" name="webpath" placeholder="Password">
        </div>
    </div>

    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">是否公用</label>

        <div class="col-sm-10">
            <input type="checkbox" name="common" value="true" >
        </div>
    </div>

    <input type="hidden" name="mtype" value="1">
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-default">保存</button>
        </div>
    </div>

</form>
</div>
 <script>
     var beans = <%-beans%>;
     $(function(){
        $("form#uform").helpform({'beans':beans});
     });
 </script>

